<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDao/QxSqlRelation.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_sql_relation_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxSqlRelation.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_sql_relation_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_SQL_RELATION_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_SQL_RELATION_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;boost/mpl/if.hpp&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;boost/mpl/logical.hpp&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;boost/type_traits/is_same.hpp&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;boost/type_traits/is_pointer.hpp&gt;</span>
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;<a class="code" href="_qx_dao_8h.html" title="Provide template functions to map C++ class registered into QxOrm context with table database (ORM - ...">QxDao/QxDao.h</a>&gt;</span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;<a class="code" href="_ix_sql_relation_8h.html" title="Common interface for all relationships defined between 2 classes (or between 2 tables in database)...">QxDao/IxSqlRelation.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;<a class="code" href="_ix_sql_query_builder_8h.html" title="Common interface to build SQL queries to communicate with database.">QxDao/IxSqlQueryBuilder.h</a>&gt;</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="preprocessor">#include &lt;<a class="code" href="remove__attr_8h.html" title="qx::trait::remove_attr&lt;T&gt;::type : return a type without pointer, const, reference and/or volatile att...">QxTraits/remove_attr.h</a>&gt;</span>
<a name="l00056"></a>00056 <span class="preprocessor">#include &lt;<a class="code" href="remove__smart__ptr_8h.html" title="qx::trait::remove_smart_ptr&lt;T&gt;::type : return a type without smart-pointer attribute from boost...">QxTraits/remove_smart_ptr.h</a>&gt;</span>
<a name="l00057"></a>00057 <span class="preprocessor">#include &lt;<a class="code" href="generic__container_8h.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">QxTraits/generic_container.h</a>&gt;</span>
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;<a class="code" href="is__container_8h.html" title="qx::trait::is_container&lt;T&gt;::value : return true if T is a container from stl, boost, Qt or QxOrm library, otherwise return false">QxTraits/is_container.h</a>&gt;</span>
<a name="l00059"></a>00059 <span class="preprocessor">#include &lt;<a class="code" href="is__valid__primary__key_8h.html" title="qx::trait::is_valid_primary_key&lt;T&gt;(const T &amp; t) : return true if t can be a valid primary key to be i...">QxTraits/is_valid_primary_key.h</a>&gt;</span>
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="is__qx__registered_8h.html" title="qx::trait::is_qx_registered&lt;T&gt;::value : return true if T is registered into QxOrm context to provide ...">QxTraits/is_qx_registered.h</a>&gt;</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#include &lt;<a class="code" href="_ix_class_8h.html" title="Common interface for all classes registered into QxOrm context.">QxRegister/IxClass.h</a>&gt;</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keyword">namespace </span>qx {
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00067"></a>00067 <span class="keyword">class </span>QxClass;
<a name="l00068"></a>00068 
<a name="l00073"></a>00073 <span class="keyword">template</span> &lt;<span class="keyword">class</span> DataType, <span class="keyword">class</span> Owner&gt;
<a name="l00074"></a><a class="code" href="classqx_1_1_qx_sql_relation.html">00074</a> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_sql_relation.html" title="qx::QxSqlRelation&lt;DataType, Owner&gt; : base class for all relationships defined between 2 classes (or b...">QxSqlRelation</a> : <span class="keyword">public</span> <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a>
<a name="l00075"></a>00075 {
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="keyword">protected</span>:
<a name="l00078"></a>00078 
<a name="l00079"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a9be1669f3493b58450a0dcf5d88ce9b1">00079</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1trait_1_1remove__attr.html#ab51ee0bccf6af3a9d34e467867d8354a">qx::trait::remove_attr&lt;DataType&gt;::type</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9be1669f3493b58450a0dcf5d88ce9b1">type_tmp_1</a>;
<a name="l00080"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a02c1a8deef88f57fc584ee0c6f4efa2d">00080</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structqx_1_1trait_1_1remove__smart__ptr.html#abb0830d767ac5f6937e7da8e3d036fbd">qx::trait::remove_smart_ptr&lt;type_tmp_1&gt;::type</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#a02c1a8deef88f57fc584ee0c6f4efa2d">type_tmp_2</a>;
<a name="l00081"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">00081</a>    <span class="keyword">typedef</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a02c1a8deef88f57fc584ee0c6f4efa2d">type_tmp_2</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a>;
<a name="l00082"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a670f7b898f02c5beae8a8cb194a04a48">00082</a>    <span class="keyword">typedef</span> <a class="code" href="structqx_1_1trait_1_1generic__container.html" title="qx::trait::generic_container&lt;T&gt; : provide some tools to manage all containers without knowing its typ...">qx::trait::generic_container&lt;type_container&gt;</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#a670f7b898f02c5beae8a8cb194a04a48">type_generic_container</a>;
<a name="l00083"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a665c8c88d1294b55edde0c50276af836">00083</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">type_generic_container::type_item</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#a665c8c88d1294b55edde0c50276af836">type_item</a>;
<a name="l00084"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a40625a408683abaf855f68464dd68833">00084</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_c&lt;qx::trait::is_container&lt;type_container&gt;::value, <span class="keyword">typename</span> <a class="code" href="structqx_1_1trait_1_1generic__container.html#a7eba8879c749d275733dc237af37b23a">type_generic_container::type_value_qx</a>, <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a>&gt;::type <a class="code" href="classqx_1_1_qx_sql_relation.html#a40625a408683abaf855f68464dd68833">type_tmp_3</a>;
<a name="l00085"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">00085</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a40625a408683abaf855f68464dd68833">QxSqlRelation&lt;DataType, Owner&gt;::type_tmp_3</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a>;
<a name="l00086"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">00086</a>    <span class="keyword">typedef</span> Owner <a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">type_owner</a>;
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a15ace1c2c3665bdf82586edabfa76aa2ac2261bd20954ccc0239bb1206e84a852">00088</a>    <span class="keyword">enum</span> { <a class="code" href="classqx_1_1_qx_sql_relation.html#a15ace1c2c3665bdf82586edabfa76aa2ac2261bd20954ccc0239bb1206e84a852">is_valid</a> = (<a class="code" href="structqx_1_1trait_1_1is__qx__registered.html" title="qx::trait::is_qx_registered&lt;T&gt;::value : return true if T is registered into QxOrm context to provide ...">qx::trait::is_qx_registered&lt;type_data&gt;::value</a> &amp;&amp; <a class="code" href="structqx_1_1trait_1_1is__qx__registered.html" title="qx::trait::is_qx_registered&lt;T&gt;::value : return true if T is registered into QxOrm context to provide ...">qx::trait::is_qx_registered&lt;type_owner&gt;::value</a>) };
<a name="l00089"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a8f12a31756047e8715a1375598c619c0a7c5ea3ac47bf42d1839aef1480afa779">00089</a>    <span class="keyword">enum</span> { <a class="code" href="classqx_1_1_qx_sql_relation.html#a8f12a31756047e8715a1375598c619c0a7c5ea3ac47bf42d1839aef1480afa779">is_data_pointer</a> = (boost::is_pointer&lt;DataType&gt;::value || <a class="code" href="structqx_1_1trait_1_1is__smart__ptr.html" title="qx::trait::is_smart_ptr&lt;T&gt;::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...">qx::trait::is_smart_ptr&lt;DataType&gt;::value</a>) };
<a name="l00090"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a5de4663f12d48fbef534836dae7a33a2afb8b81d3a6782e48c6b877f71a6d54ec">00090</a>    <span class="keyword">enum</span> { <a class="code" href="classqx_1_1_qx_sql_relation.html#a5de4663f12d48fbef534836dae7a33a2afb8b81d3a6782e48c6b877f71a6d54ec">is_data_container</a> = <a class="code" href="structqx_1_1trait_1_1is__container.html" title="qx::trait::is_container&lt;T&gt;::value : return true if T is a container from stl, boost, Qt or QxOrm library, otherwise return false">qx::trait::is_container&lt;type_container&gt;::value</a> };
<a name="l00091"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#ad87d29175b738527421593ca1b0115c8ace5580f21e28786a3391d22a1da5fad2">00091</a>    <span class="keyword">enum</span> { <a class="code" href="classqx_1_1_qx_sql_relation.html#ad87d29175b738527421593ca1b0115c8a19c011980f55b007ee0064c4fe95cba0">is_same_data_owner</a> = boost::is_same&lt;type_data, type_owner&gt;::value };
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="keyword">public</span>:
<a name="l00094"></a>00094 
<a name="l00095"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a3cd608ea204a9ea0b6124a1f4763132f">00095</a>    <a class="code" href="classqx_1_1_qx_sql_relation.html#a3cd608ea204a9ea0b6124a1f4763132f">QxSqlRelation</a>(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * p) : <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a>(p) { this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a0d60f77206117d9712d8d86c73630ee0" title="Check if relationship source entity and target entity are equal.">m_iIsSameDataOwner</a> = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(<a class="code" href="classqx_1_1_qx_sql_relation.html#ad87d29175b738527421593ca1b0115c8a19c011980f55b007ee0064c4fe95cba0">is_same_data_owner</a>); }
<a name="l00096"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a69b15428e6e64dd14706a35824b6d760">00096</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a69b15428e6e64dd14706a35824b6d760">~QxSqlRelation</a>() { BOOST_STATIC_ASSERT(<a class="code" href="classqx_1_1_qx_sql_relation.html#a15ace1c2c3665bdf82586edabfa76aa2ac2261bd20954ccc0239bb1206e84a852">is_valid</a>); }
<a name="l00097"></a>00097 
<a name="l00098"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a6a43e9466acf416508429393ebc05c3f">00098</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a6a43e9466acf416508429393ebc05c3f">init</a>()
<a name="l00099"></a>00099    {
<a name="l00100"></a>00100       <span class="keywordflow">if</span> (<a class="code" href="classqx_1_1_ix_sql_relation.html#a8c502756e2609d65a6edda27ba248547" title="Class initialisation in progress.">m_bInitInEvent</a> || <a class="code" href="classqx_1_1_ix_sql_relation.html#a70a22d3210f5324c628947995c0cc3d6" title="Class initialisation finished.">m_bInitDone</a>) { <span class="keywordflow">return</span>; }
<a name="l00101"></a>00101       <a class="code" href="classqx_1_1_ix_sql_relation.html#a2e1376b316693b640b14796e9cae3f8a" title="&#39;IxClass&#39; associated wth sql relation">m_pClass</a> = <a class="code" href="classqx_1_1_qx_class.html" title="qx::QxClass&lt;T&gt; : concrete class of type T registered into QxOrm context (this class is a singleton an...">QxClass&lt;type_data&gt;::getSingleton</a>();
<a name="l00102"></a>00102       <a class="code" href="classqx_1_1_ix_sql_relation.html#aeac1e4579260bb325ae359f45d0ed602" title="&#39;IxClass&#39; of the owner">m_pClassOwner</a> = <a class="code" href="classqx_1_1_qx_class.html" title="qx::QxClass&lt;T&gt; : concrete class of type T registered into QxOrm context (this class is a singleton an...">QxClass&lt;type_owner&gt;::getSingleton</a>();
<a name="l00103"></a>00103       <a class="code" href="classqx_1_1_qx_sql_relation.html#a6a43e9466acf416508429393ebc05c3f">IxSqlRelation::init</a>();
<a name="l00104"></a>00104    }
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="keyword">protected</span>:
<a name="l00107"></a>00107 
<a name="l00108"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a32038641c993597d141b6f09c3e4353a">00108</a>    <span class="keyword">inline</span> DataType * <a class="code" href="classqx_1_1_qx_sql_relation.html#a32038641c993597d141b6f09c3e4353a">getDataTypePtr</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00109"></a>00109 <span class="keyword">   </span>{ <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">owner</a>() &amp;&amp; <a class="code" href="classqx_1_1_ix_sql_relation.html#aca8badfdce0c1d518fd031a0def392df" title="&#39;IxDataMember&#39; associated wth sql relation">m_pDataMember</a>); <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>DataType *<span class="keyword">&gt;</span>(<a class="code" href="classqx_1_1_ix_sql_relation.html#aca8badfdce0c1d518fd031a0def392df" title="&#39;IxDataMember&#39; associated wth sql relation">m_pDataMember</a>-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#a30111497755171bccae073185270ad3d">getValueVoidPtr</a>(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">owner</a>())); }
<a name="l00110"></a>00110 
<a name="l00111"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a6db4a2822d4f327eaa690a15a4ab5a3d">00111</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">type_owner</a> &amp; <a class="code" href="classqx_1_1_qx_sql_relation.html#a6db4a2822d4f327eaa690a15a4ab5a3d">getOwner</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00112"></a>00112 <span class="keyword">   </span>{ <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">owner</a>()); <span class="keywordflow">return</span> (* static_cast&lt;type_owner *&gt;(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">owner</a>())); }
<a name="l00113"></a>00113 
<a name="l00114"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a302437e27e405dee206f8afc5e9d80e1">00114</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; <a class="code" href="classqx_1_1_qx_sql_relation.html#a302437e27e405dee206f8afc5e9d80e1">getData</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00115"></a>00115 <span class="keyword">   </span>{ <span class="keywordflow">return</span> <a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html#a633f363ec2aed21dcb24bcd86bdb53e8">getData_Helper&lt;is_data_pointer, is_data_container, 0&gt;::get</a>(<a class="code" href="classqx_1_1_qx_sql_relation.html#a32038641c993597d141b6f09c3e4353a">getDataTypePtr</a>(params)); }
<a name="l00116"></a>00116 
<a name="l00117"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a7bad56d186c0df3cc7b3159d40fcdb56">00117</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> &amp; <a class="code" href="classqx_1_1_qx_sql_relation.html#a7bad56d186c0df3cc7b3159d40fcdb56">getContainer</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00118"></a>00118 <span class="keyword">   </span>{ <span class="keywordflow">return</span> <a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html#a161afc1265a28c9f1d2b6c2076b14edd">getContainer_Helper&lt;is_data_pointer, is_data_container, 0&gt;::get</a>(<a class="code" href="classqx_1_1_qx_sql_relation.html#a32038641c993597d141b6f09c3e4353a">getDataTypePtr</a>(params)); }
<a name="l00119"></a>00119 
<a name="l00120"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a394fcd53b79345d684d351fd00881eb1">00120</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">type_item</a> <a class="code" href="classqx_1_1_qx_sql_relation.html#a394fcd53b79345d684d351fd00881eb1">createItem</a>()<span class="keyword"> const</span>
<a name="l00121"></a>00121 <span class="keyword">   </span>{ <span class="keywordflow">return</span> <a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper.html#a52943762c7b64212c7abc878383448a7">createItem_Helper&lt;is_data_container, 0&gt;::get</a>(); }
<a name="l00122"></a>00122 
<a name="l00123"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#aeaab7a9bd52b82e58f65adf7a6b64dd6">00123</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#aeaab7a9bd52b82e58f65adf7a6b64dd6">isNullData</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00124"></a>00124 <span class="keyword">   </span>{ <span class="keywordflow">return</span> <a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper.html#a62d4d17b4b60052213dd39d7dbc97523">isNullData_Helper&lt;is_data_pointer, 0&gt;::get</a>(<a class="code" href="classqx_1_1_qx_sql_relation.html#a32038641c993597d141b6f09c3e4353a">getDataTypePtr</a>(params)); }
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a155eb6ac8002fec56efcbcd3648d7c22">00126</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a155eb6ac8002fec56efcbcd3648d7c22">callTriggerBeforeFetch</a>(<a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; t, <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00127"></a>00127 <span class="keyword">   </span>{
<a name="l00128"></a>00128       <span class="keywordflow">if</span> (! params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>().<a class="code" href="classqx_1_1_ix_sql_query_builder.html#aab08cb826d85527c25a4dddb90cbb6b4">getDaoHelper</a>()) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }
<a name="l00129"></a>00129       qx::dao::on_before_fetch&lt;type_data&gt;((&amp; t), params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>().<a class="code" href="classqx_1_1_ix_sql_query_builder.html#aab08cb826d85527c25a4dddb90cbb6b4">getDaoHelper</a>());
<a name="l00130"></a>00130       <span class="keywordflow">return</span> params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>().<a class="code" href="classqx_1_1_ix_sql_query_builder.html#aab08cb826d85527c25a4dddb90cbb6b4">getDaoHelper</a>()-&gt;<a class="code" href="classqx_1_1dao_1_1detail_1_1_ix_dao___helper.html#a1af48b14fa45531ee3e8956b4653151f">isValid</a>();
<a name="l00131"></a>00131    }
<a name="l00132"></a>00132 
<a name="l00133"></a><a class="code" href="classqx_1_1_qx_sql_relation.html#a2349b717af0c614cde745905820eeaf1">00133</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a2349b717af0c614cde745905820eeaf1">callTriggerAfterFetch</a>(<a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; t, <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00134"></a>00134 <span class="keyword">   </span>{
<a name="l00135"></a>00135       <span class="keywordflow">if</span> (! params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>().<a class="code" href="classqx_1_1_ix_sql_query_builder.html#aab08cb826d85527c25a4dddb90cbb6b4">getDaoHelper</a>()) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }
<a name="l00136"></a>00136       qx::dao::on_after_fetch&lt;type_data&gt;((&amp; t), params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>().<a class="code" href="classqx_1_1_ix_sql_query_builder.html#aab08cb826d85527c25a4dddb90cbb6b4">getDaoHelper</a>());
<a name="l00137"></a>00137       <span class="keywordflow">return</span> params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>().<a class="code" href="classqx_1_1_ix_sql_query_builder.html#aab08cb826d85527c25a4dddb90cbb6b4">getDaoHelper</a>()-&gt;<a class="code" href="classqx_1_1dao_1_1detail_1_1_ix_dao___helper.html#a1af48b14fa45531ee3e8956b4653151f">isValid</a>();
<a name="l00138"></a>00138    }
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="keyword">private</span>:
<a name="l00141"></a>00141 
<a name="l00142"></a>00142    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsPointer <span class="comment">/* = false */</span>, <span class="keywordtype">bool</span> bIsContainer <span class="comment">/* = false */</span>, <span class="keywordtype">int</span> dummy&gt;
<a name="l00143"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html">00143</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html">getData_Helper</a>
<a name="l00144"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html#a633f363ec2aed21dcb24bcd86bdb53e8">00144</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; <span class="keyword">get</span>(DataType * t) { <span class="keywordflow">return</span> (* t); } };
<a name="l00145"></a>00145 
<a name="l00146"></a>00146    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00147"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper_3_01true_00_01false_00_01dummy_01_4.html">00147</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html">getData_Helper</a>&lt;true, false, dummy&gt;
<a name="l00148"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper_3_01true_00_01false_00_01dummy_01_4.html#a1a7f29026c0a855dedd8f9177a00c9fe">00148</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; <span class="keyword">get</span>(DataType * t) { <span class="keywordflow">if</span> (! (* t)) { <a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html#a633f363ec2aed21dcb24bcd86bdb53e8">qx::trait::construct_ptr&lt;DataType&gt;::get</a>(* t); }; <span class="keywordflow">return</span> (** t); } };
<a name="l00149"></a>00149 
<a name="l00150"></a>00150    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00151"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper_3_01false_00_01true_00_01dummy_01_4.html">00151</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html">getData_Helper</a>&lt;false, true, dummy&gt;
<a name="l00152"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper_3_01false_00_01true_00_01dummy_01_4.html#af9b09a739dd578561dc264e06c9d7540">00152</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; <span class="keyword">get</span>(DataType * t) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); Q_UNUSED(t); <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> * pDummy(NULL); <span class="keywordflow">return</span> (* pDummy); } };
<a name="l00153"></a>00153 
<a name="l00154"></a>00154    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00155"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper_3_01true_00_01true_00_01dummy_01_4.html">00155</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper.html">getData_Helper</a>&lt;true, true, dummy&gt;
<a name="l00156"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_data___helper_3_01true_00_01true_00_01dummy_01_4.html#aae2e1119e8816b798bb269abd9444f28">00156</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; <span class="keyword">get</span>(DataType * t) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); Q_UNUSED(t); <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> * pDummy(NULL); <span class="keywordflow">return</span> (* pDummy); } };
<a name="l00157"></a>00157 
<a name="l00158"></a>00158    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsPointer <span class="comment">/* = false */</span>, <span class="keywordtype">bool</span> bIsContainer <span class="comment">/* = false */</span>, <span class="keywordtype">int</span> dummy&gt;
<a name="l00159"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html">00159</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html">getContainer_Helper</a>
<a name="l00160"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html#a161afc1265a28c9f1d2b6c2076b14edd">00160</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> &amp; <span class="keyword">get</span>(DataType * t) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); Q_UNUSED(t); <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> * pDummy(NULL); <span class="keywordflow">return</span> (* pDummy); } };
<a name="l00161"></a>00161 
<a name="l00162"></a>00162    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00163"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper_3_01true_00_01false_00_01dummy_01_4.html">00163</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html">getContainer_Helper</a>&lt;true, false, dummy&gt;
<a name="l00164"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper_3_01true_00_01false_00_01dummy_01_4.html#a2ed07dfa09ef26997d65216e56d7f228">00164</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> &amp; <span class="keyword">get</span>(DataType * t) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); Q_UNUSED(t); <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> * pDummy(NULL); <span class="keywordflow">return</span> (* pDummy); } };
<a name="l00165"></a>00165 
<a name="l00166"></a>00166    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00167"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper_3_01false_00_01true_00_01dummy_01_4.html">00167</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html">getContainer_Helper</a>&lt;false, true, dummy&gt;
<a name="l00168"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper_3_01false_00_01true_00_01dummy_01_4.html#a0676f9c648efde52dce9772f4df23a91">00168</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> &amp; <span class="keyword">get</span>(DataType * t) { <span class="keywordflow">return</span> (* t); } };
<a name="l00169"></a>00169 
<a name="l00170"></a>00170    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00171"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper_3_01true_00_01true_00_01dummy_01_4.html">00171</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html">getContainer_Helper</a>&lt;true, true, dummy&gt;
<a name="l00172"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper_3_01true_00_01true_00_01dummy_01_4.html#ae05cbf37011685fc2fdb003dd3a92a21">00172</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#aa5f10102dfa6a3691a07602957b57385">type_container</a> &amp; <span class="keyword">get</span>(DataType * t) { <span class="keywordflow">if</span> (! (* t)) { <a class="code" href="structqx_1_1_qx_sql_relation_1_1get_container___helper.html#a161afc1265a28c9f1d2b6c2076b14edd">qx::trait::construct_ptr&lt;DataType&gt;::get</a>(* t); }; <span class="keywordflow">return</span> (** t); } };
<a name="l00173"></a>00173 
<a name="l00174"></a>00174    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsContainer <span class="comment">/* = false */</span>, <span class="keywordtype">int</span> dummy&gt;
<a name="l00175"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper.html">00175</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper.html">createItem_Helper</a>
<a name="l00176"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper.html#a52943762c7b64212c7abc878383448a7">00176</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">type_item</a> <span class="keyword">get</span>() { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <a class="code" href="classqx_1_1trait_1_1no__type.html">type_item</a> * pDummy(NULL); <span class="keywordflow">return</span> (* pDummy); } };
<a name="l00177"></a>00177 
<a name="l00178"></a>00178    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00179"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper_3_01true_00_01dummy_01_4.html">00179</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper.html">createItem_Helper</a>&lt;true, dummy&gt;
<a name="l00180"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1create_item___helper_3_01true_00_01dummy_01_4.html#a51263e012cbb50a83c7b06c8f0b28285">00180</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1trait_1_1no__type.html">type_item</a> <span class="keyword">get</span>() { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a394fcd53b79345d684d351fd00881eb1">type_generic_container::createItem</a>(); } };
<a name="l00181"></a>00181 
<a name="l00182"></a>00182    <span class="keyword">template</span> &lt;<span class="keywordtype">bool</span> bIsPointer <span class="comment">/* = false */</span>, <span class="keywordtype">int</span> dummy&gt;
<a name="l00183"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper.html">00183</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper.html">isNullData_Helper</a>
<a name="l00184"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper.html#a62d4d17b4b60052213dd39d7dbc97523">00184</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <span class="keyword">get</span>(DataType * t) { Q_UNUSED(t); <span class="keywordflow">return</span> <span class="keyword">false</span>; } };
<a name="l00185"></a>00185 
<a name="l00186"></a>00186    <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> dummy&gt;
<a name="l00187"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper_3_01true_00_01dummy_01_4.html">00187</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper.html">isNullData_Helper</a>&lt;true, dummy&gt;
<a name="l00188"></a><a class="code" href="structqx_1_1_qx_sql_relation_1_1is_null_data___helper_3_01true_00_01dummy_01_4.html#ae96f2705cac4df80a8ed613ea8e1f73e">00188</a>    { <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <span class="keyword">get</span>(DataType * t) { <span class="keywordflow">return</span> ((! (* t)) ? <span class="keyword">true</span> : <span class="keyword">false</span>); } };
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 };
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 } <span class="comment">// namespace qx</span>
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation___one_to_one_8h.html" title="Manage a relationship one-to-one defined between 2 classes (or between 2 tables in database)...">QxDao/QxSqlRelation_OneToOne.h</a>&gt;</span>
<a name="l00195"></a>00195 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation___one_to_many_8h.html" title="Manage a relationship one-to-many defined between 2 classes (or between 2 tables in database)...">QxDao/QxSqlRelation_OneToMany.h</a>&gt;</span>
<a name="l00196"></a>00196 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation___many_to_one_8h.html" title="Manage a relationship many-to-one defined between 2 classes (or between 2 tables in database)...">QxDao/QxSqlRelation_ManyToOne.h</a>&gt;</span>
<a name="l00197"></a>00197 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation___many_to_many_8h.html" title="Manage a relationship many-to-many defined between 2 classes (or between 2 tables in database)...">QxDao/QxSqlRelation_ManyToMany.h</a>&gt;</span>
<a name="l00198"></a>00198 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation___raw_data_8h.html">QxDao/QxSqlRelation_RawData.h</a>&gt;</span>
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 <span class="preprocessor">#endif // _QX_SQL_RELATION_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_sql_relation_8h.html">QxSqlRelation.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
